<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>个人信息管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/echead.css"/>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/noteEdit.css"/>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#savebutton").click(function(){
				$("#noteCreateForm").submit();
			});
		});
	</script>
</head>
  
<body>
<div id="menu">
   <ul >
   <a href="dayAtAGlanceAction"><li id="dayAtAGlance"></li></a>
   <a href="noteList"/><li id="notes"></li></a>
   <a href="taskList"><li id="tasks"></li></a>
   <a href="contactList"><li id="contacts"></li></a>
   <a href="appointmentList"><li id="appointments"></li></a>
   <a href="accountEditShow"><li id="myAccount"></li></a>
   <a href="logoff"><li id="logoff"></li></a>
   <a href="cgtheme?theme=1"><li id="skin1"></li></a>
   <a href="cgtheme?theme=2"><li id="skin2"></li></a>
   <a href="cgtheme?theme=3"><li id="skin3"></li></a> 
   </ul> <div id="logo"></div>
</div>

<div id="main">
    <div id="secontmenu">
      <ul>
      <a href="noteForware?operate=create"><li id="newNote"></li></a>
      </ul>
    </div>
    <div id="content">
          <div id="title"></div>
          <div id="noteEdit">
                <p id="text">创建日记:</p>
                <form id="noteCreateForm" method="post" action="noteCreate">
                <p id="notetitle"><span>主题:</span><input type="text" name="note.subject" /></p>
                <p id="notecontent"><span>内容:</span><textarea id="content" name="note.text"></textarea></p>
                <div id="savebutton"></div>
                </form>
          </div>
    </div>
</div>
</body>
</html>
